﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Mt.Site.Core.Taxonomys.Entities
{
    public class Taxonomy: FullAuditedEntity<Guid>, IPassivable
    {
        public const int MaxTitleLength = 100;

        [StringLength(MaxTitleLength)]
        public string Title { get; set; }

        [NotMapped]
        public string LocalDisplayName { get; set; }

        public int Norder { get; set; }

        public bool IsTree { get; set; }

        public bool IsActive { get; set; }
    }
}
